package mware_lib.namensdienst.messages;

import java.io.Serializable;

public class AccRetMsg implements Serializable{

	private static final long serialVersionUID = -949621915934055180L;
	
	private double balance;
	private boolean erfolg;
	private String errorText;
	private String excType;

	public AccRetMsg(double balance) {
		this.balance = balance;
		this.erfolg = false;
	}
	
	public AccRetMsg(double balance, boolean erfolg) {
		this.balance = balance;
		this.erfolg = erfolg;
	}
	
	public AccRetMsg(double balance, boolean erfolg, String errorText, String excType) {
		this.balance = balance;
		this.erfolg = erfolg;
		this.errorText = errorText;
		this.excType = excType;
	}

	public double getBalance() {
		return balance;
	}
	
	public boolean isErfolg(){
		return erfolg;
	}
	
	public String getErrorText(){ 
		return errorText;
	}
	
	public String getExcType(){
		return excType;
	}
	
}
